package com.easylinkin.linkappapi.operatelog.constant;

/**
 * <p>
 * 告警管理常量
 * </p>
 *
 * @author TongJie
 * @since 2020/5/8 15:01
 */
public interface LogConstant {

    /**
     * 日志模块枚举
     */
    enum LogModule {

        /**
         * 设备
         */
        DEVICE("设备"),
        /**
         * 配电房
         */
        DISTRIBUTION_ROOM("配电房"),
        /**
         * 资产
         */
        ASSET("资产"),
        USER("用户"),
        ALARM_PERSON_CONTACT("告警联系人"),
        ALARM_PROCESS("告警处理"),
        ALARM_TEMPLATE("告警模板"),
        DATA_SOURCE("数据源"),
        APPLICATION("应用"),
        CALCULATE_CONFIG("计算配置"),
        CALCULATE_RULE("计算规则"),
        DASHBOARD("大屏"),
        DEVICE_ATTRIBUTE("设备属性"),
        DEVICE_ATTRIBUTE_TENANT_CONFIG("设备属性租户个性化配置"),
        DEVICE_SERVICE_TENANT_CONFIG("设备服务租户个性化配置"),
        BANK_ALARM_RULE("告警规则"),
        FUNCTION("功能"),
        DATA_PUSH("数据推送"),
        OPEN_API("开放接口"),
        DISTRIBUTION_CABINET("配电柜"),
        SPACE_OPEN_API("空间开放接口"),
        SYNCHRONIZATION("数据同步"),
        OPERATE_LOG("操作日志"),
        PERSONALITY("个性化"),
        DISTRIBUTION_CABINET_CONFIGURATION("配电柜类型组态"),
        DISTRIBUTION_CABINET_TYPE("配电柜类型"),
        DISTRIBUTION_CABINET_TYPE_SITE("配电柜类型位置"),
        RULE_COMPONENT("规则组件"),
        DATA_FLUSH("刷历史数据"),
        RULE_ENGINE("规则引擎"),
        ROLE("角色"),
        AREA("区域"),
        SPACE("空间"),
        TASK_SCHEDULER("定时任务"),
        TENANT("租户"),
        KNOWLEDGE_BASE("知识库"),
        KNOWLEDGE_TYPE("知识类别"),
        APP_VERSION("App版本"),
        LABOR_MANAGEMENT("劳务管理"),
        SAFE_MANAGEMENT("安全管理"),
        MACHINERY_MANAGEMENT("机械管理"),
        DASHBOARD_SETTING("大屏配置"),
        DOWNSEND_CONTROL("下发控制"),
        LOGIN("登录页"),
        QUALITY_MANAGEMENT("质量管理"),
        PEOPLE_LOCATION("人员定位"),
        ;


        /**
         * 名称
         */
        private String name;

        /**
         * 获取值
         */
        public String getName() {
            return name;
        }

        LogModule(String name) {
            this.name = name;
        }
    }

    interface LogOperateType {

        // 设备模块
        String DEVICE_ADD = "新增设备";
        String DEVICE_UPDATE = "修改设备";
        String DEVICE_DELETE = "删除设备";

        // 资产模块
        String ASSET_ADD = "新增资产";
        String ASSET_UPDATE = "修改资产";
        String ASSET_DELETE = "删除资产";

        String ASSET_BINDING_DEVICE = "绑定设备";
        String ASSET_UNBIND_DEVICE = "解绑设备";

        // 劳务管理
        String LABOL_USER_UP_TO_GATE = "labol.user.up.to.gate";
        String LABOL_USER_UPDATE = "labol.user.update";
        String LABOL_USER_DELETE = "labol.user.delete";
        String LABOL_USER_EXIT_PROJECT = "labol.user.exit.project";
        String LABOL_GROUP_DELETE = "labol.group.delete";
        String LABOL_GROUP_EXIT_PROJECT = "labol.group.exit.project";
        String LABOL_GROUP_IN_PROJECT = "labol.group.in.project";
        String LABOL_COMPANY_DELETE = "labol.company.delete";
        String LABOL_COMPANY_EXIT_PROJECT = "labol.company.exit.project";
        String LABOL_COMPANY_IN_PROJECT = "labol.company.in.project";
        String LABOL_CLOCK_CONFIG_UPDATE = "labol.clock.config.update";

        String LABOL_REALNAME_PLATFORM_IMPORTREAL = "labol.realName.Platform.importReal";

        String LABOL_USER_BATCH_IMPORT = "labol.user.batch.import";
        String LABOL_USER_BATCH_IMPORT_PHOTO = "labol.user.batch.importPhoto";
        String LABOL_UP_USER_TO_GATE = "labol.upUserToGate";
        String LABOL_GATE_EDIT = "labol.gate.edit";
        String LABOL_GATE_DELETE = "labol.gate.delete";
        String LABOL_ROSTER_ADD_BLACK = "labol.roster.add.black";
        String LABOL_USER_ROSTER_ADD_BLACK = "labol.user.roster.add.black";



        // 安全管理
        String SAFE_HIDDEN_DANGER_DELETE = "safe.hidden.danger.delete";
        String SAFE_CHECK_BOX_DELETE = "safe.check.box.delete";
        String SAFE_CHECK_BOX_UPDATE = "safe.check.box.update";
        String SAFE_QUALITY_POSITION_DELETE = "safe.quality.position.delete";

        String SAFE_MANAGEMENT_EXPORT_INSPECTION_RECORDS = "safe.export.inspection.records";
        String SAFE_MANAGEMENT_EXPORT_RECTIFICATION_NOTICE = "safe.export.rectification.notice";
        String SAFE_QUALITY_ACTUAL_INFO_DELETE = "safe.quality.actual.info.delete";
        String SAFE_CONCRETE_STRENGTH_INFO_DELETE = "safe.concrete.strength.info.delete";

        // 人员定位
        String LOCATION_DEVICE_BATCH_IMPORT = "location.device.batch.import";

        String LOCATION_DEVICE_UNTIE = "location.device.untie";

        String LOCATION_DEVICE_SYNC = "location.device.sync";

        // 机械管理
        String MACHINERY_RECORD_DELETE = "machinery.record.delete";
        String MACHINERY_RECORD_UPDATE = "machinery.record.update";

        // 规则引擎
        String RULE_ENGINE_DELETE = "rule.engine.delete";
        String RULE_ENGINE_UPDATE = "rule.engine.update";

        // 用户管理
        String USER_DELETE = "user.delete";
        String USER_UPDATE = "user.update";

        // 角色管理
        String ROLE_ADD = "role.add";
        String ROLE_DELETE = "role.delete";
        String ROLE_UPDATE = "role.update";

        // 登录页
        String LOGIN_IN_PROJECT = "login.in.project";

        //项目大屏设置
        String DASHBOARD_PARTBUILD_IMPORTANT_PARTY_LESSON_ADD = "dashboard.partBuild.important.party.lesson.add";
        String DASHBOARD_PARTBUILD_IMPORTANT_PARTY_LESSON_EDIT = "dashboard.partBuild.important.party.lesson.edit";
        String DASHBOARD_PARTBUILD_IMPORTANT_PARTY_LESSON_DEL = "dashboard.partBuild.important.party.lesson.del";
        String DASHBOARD_PARTBUILD_IMPORTANT_SPEECH_ADD = "dashboard.partBuild.important.speech.add";
        String DASHBOARD_PARTBUILD_IMPORTANT_SPEECH_EDIT = "dashboard.partBuild.important.speech.edit";
        String DASHBOARD_PARTBUILD_IMPORTANT_SPEECH_DEL = "dashboard.partBuild.important.speech.del";

        String DASHBOARD_PARTBUILD_VIDEO_ADD = "dashboard.partBuild.video.add";
        String DASHBOARD_PARTBUILD_VIDEO_EDIT = "dashboard.partBuild.video.edit";
        String DASHBOARD_PARTBUILD_VIDEO_DEL = "dashboard.partBuild.video.del";
        String DASHBOARD_PARTBUILD_ACTIVITIES_ADD = "dashboard.partBuild.activities.add";
        String DASHBOARD_PARTBUILD_ACTIVITIES_EDIT = "dashboard.partBuild.activities.edit";
        String DASHBOARD_PARTBUILD_ACTIVITIES_DEL = "dashboard.partBuild.activities.del";
        String DASHBOARD_PARTBUILD_ELEGANT_DEMEANOR_ADD = "dashboard.partBuild.elegant.demeanor.add";
        String DASHBOARD_PARTBUILD_ELEGANT_DEMEANOR_EDIT = "dashboard.partBuild.elegant.demeanor.edit";
        String DASHBOARD_PARTBUILD_ELEGANT_DEMEANOR_DEL = "dashboard.partBuild.elegant.demeanor.del";
        String DASHBOARD_PARTBUILD_POLITICAL_STATUS_ADD = "dashboard.partBuild.political.status.add";
        String DASHBOARD_PARTBUILD_POLITICAL_STATUS_EDIT = "dashboard.partBuild.political.status.edit";
        String DASHBOARD_PARTBUILD_POLITICAL_STATUS_DEL = "dashboard.partBuild.political.status.del";
        String DASHBOARD_WARNING_SETTING = "dashboard.warning.setting";
        String DASHBOARD_OVERVIEW_SETTING = "dashboard.overview.setting";
    }

}
